{*INCLUDES THE HEADER TEMPLATE*}
{include file="teriko/editHead.tpl"}
		
		{if $editPanel == true}
			{include file="teriko/editPanel.tpl"}
		{/if}
		{if $error != ""}
			<tr>
				<td width="100" valign="top">
					<label for="error">
						<strong>{GetLang modul="Common" name="error"}:</strong>
					</label>
				</td>
				<td>{$error}</td>
			</tr>
		{/if}
		<tr>
			<td width="30%" colspan="3" style="font-weight:bold; color:grey;">{GetLang modul="Common" name="data"}:</td>
			<td style="font-weight:bold; color:grey;"></td>
		</tr>
		<tr>
			<td valign="top">
				<label for="name">
					<strong>{GetLang modul="Common" name="name"}:</strong>
				</label>
			</td>
			<td>
				<input class="inputbox" type="text" name="name" id="name" size="45" maxlength="30" value="{$name}" /><strong>*</strong>
			</td>
			<td align="right">
				<strong>{GetLang modul="Common" name="validTo"}:</strong>
				<strong><input type="text" name="validTo" value="{$validTo}" /></strong>
			</td>
		</tr>
		</table>
		<br/>
		<div id="tabView1">
			<h4 title="{GetLang modul="Common" name="baseData"}">{GetLang modul="Common" name="baseData"}</h4>
			<div>
				<table class="adminForm">
					<tr>
						<td>{GetLang modul="Department" name="defaultWorkModel"}</td>
						<td>
							<select name="workModel">
								
								{foreach from=$defaultWorkModel item=workModel}
									{if $workModelVal eq $workModel.id}
									    <option value="{$workModel.id}" selected>{$workModel.name}</option>
									{else}
										 <option value="{$workModel.id}">{$workModel.name}</option>
									{/if}
								{/foreach}
							</select>
						</td>
					</tr>
					<tr>
						<td>{GetLang modul="Department" name="defaultHolidayModel"}</td>
						<td>
							<select name="holidayModel">
								{foreach from=$defaultHolidayModel item=holidayModel}
									{if $holidayModelVal eq $holidayModel.id}
									    <option value="{$holidayModel.id}" selected>{$holidayModel.name}</option>
									{else}
										 <option value="{$holidayModel.id}">{$holidayModel.name}</option>
									{/if}
								{/foreach}
							</select>
						</td>
					</tr>
					<tr>
						<td>{GetLang modul="Department" name="layerPlanner"}</td>
						<td>
							{if $layerPlanner == 1}
								<input type="checkbox" name="layerPlanner" checked/>
							{else}
								<input type="checkbox" name="layerPlanner" />
							{/if}
						</td>
					</tr>
					<tr>
						<td>{GetLang modul="Department" name="capacityPlanning"}</td>
						<td>
							{if $capacityPlanning == 1}
								<input type="checkbox" name="capacityPlanning" checked/>
							{else}
								<input type="checkbox" name="capacityPlanning" />
							{/if}
						</td>
					</tr>
					<tr>
						<td>{GetLang modul="Department" name="color"}</td>
						<td><input type="checkbox" name="color" /></td>
					</tr>
				</table>
			</div>
			<h4 title="{GetLang modul="Common" name="adress"}">{GetLang modul="Common" name="adress"}</h4>
			<div>
				<table class="adminForm">
					<tr>
						<td>{GetLang modul="Common" name="name"} 1:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="addressname1" value="{$addressName1}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Common" name="name"} 2:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="addressname2" value="{$addressName2}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="street"}:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="street" value="{$street}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="zipCode"}:</td>
						<td><input type="text" name="zipcode" value="{$zipcode}" /></td>
						<td>{GetLang modul="Address" name="city"}:</td>
						<td><input type="text" name="city" value="{$city}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="country"}:</td>
						<td><input type="text" name="country" value="{$country}" /></td>
						<td>{GetLang modul="Address" name="region"}:</td>
						<td><input type="text" name="region" value="{$region}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="telPrefix"}:</td>
						<td><input type="text" name="telprefix" value="{$telprefix}" /></td>
						<td>{GetLang modul="Address" name="telephone"}:</td>
						<td><input type="text" name="telephone" value="{$telephone}" /></td>
						<td>{GetLang modul="Address" name="telefax"}:</td>
						<td><input type="text" name="telefax" value="{$telefax}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="email"}:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="email" value="{$email}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="homepage"}:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="homepage" value="{$homepage}" /></td>
					</tr>
				</table>
			</div>
			<h4 title="{GetLang modul="Common" name="contactPerson"}">{GetLang modul="Common" name="contactPerson"}</h4>
			<div>
				<table class="adminForm">
					<tr>
						<td>{GetLang modul="Member" name="anrede"}:</td>
						<td>
							<select name="anrede">
								{foreach from=$anrede->value key=k item=anr}
									{if $anredeVal eq $anr.id}
									    <option value="{$anr.id}" selected>{$anr}</option>
									{else}
										<option value="{$anr.id}">{$anr}</option>
									{/if}
								{/foreach}
							</select>
						</td>
					</tr>
					<tr>
						<td>{GetLang modul="Member" name="strTitle"}:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="title" value="{$title}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Member" name="firstName"}:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="firstname" value="{$firstname}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Member" name="lastName"}:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="lastname" value="{$lastname}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="telPrefix"}:</td>
						<td><input type="text" name="ctelprefix" value="{$ctelprefix}" /></td>
						<td>{GetLang modul="Address" name="telephone"}:</td>
						<td><input type="text" name="ctelephone" value="{$ctelephone}" /></td>
						<td>{GetLang modul="Address" name="telefax"}:</td>
						<td><input type="text" name="ctelefax" value="{$ctelefax}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="email"}:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="cemail" value="{$cemail}" /></td>
					</tr>
					<tr>
						<td>{GetLang modul="Address" name="homepage"}:</td>
						<td colspan="3"><input style="width:100%;" type="text" name="chomepage" value="{$chomepage}" /></td>
					</tr>
				</table>
			</div>
			<h4 title="{GetLang modul="Common" name="note"}" name="contactPerson"}>{GetLang modul="Common" name="note"}</h4>
			<div>
				<table class="adminForm">
					<tr>
						<td>
							{GetLang modul="Common" name="note"}
						</td>
					</tr>
					<tr>
						<td>
							<textarea name="note" cols="50" rows="5">{$note}</textarea>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<input type="hidden" id="hiddenTabIndex" name="hiddenTabIndex" value="0" />

		<table>	
		{*INCLUDES THE FOOTER TEMPLATE*}
		{include file="teriko/editFooter.tpl"}

{*LITERAL IS USED TO ADD JAVASCRIPT*}
{literal} 
<script type="text/javascript">
	var tabs = new SimpleTabs('tabView1', {selector: 'h4', show: {/literal}{$tabIndex}{literal} ,
		onSelect: function(toggle, container, index) {
			toggle.addClass('tab-selected');
			container.setStyle('display', '');
			
			
			document.getElementById('hiddenTabIndex').value = index;
		}});
		
</script>
{/literal} 
		